]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Center-align menu arrows
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 14 Jun 2019 18:58:50 +0000 (18:58 +0000)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 21 Jun 2019 21:09:56 +0000 (21:09 +0000)
Center alignment looks more balanced and makes it more likely that
the menu opens below the pointer position.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1351

js/ui/panel.js
js/ui/status/accessibility.js
js/ui/status/dwellClick.js
js/ui/status/keyboard.js

index ef08b1aad82c3d5a8a70871a116e3c8ffa17fb8e..be02785a8cf2c20e224166f0ff5610faa04fc714 100644 (file)
@@ -66,7 +66,7 @@ function _unpremultiply(color) {
 
 class AppMenu extends PopupMenu.PopupMenu {
     constructor(sourceActor) {
-        super(sourceActor, 0.0, St.Side.TOP);
+        super(sourceActor, 0.5, St.Side.TOP);
 
         this.actor.add_style_class_name('app-menu');
 
index 7db39a2221e4fcedb0f9f4fb2c569e3a80b7b81b..4630f4d4bb184515b3289116e96f117f2c60adb6 100644 (file)
@@ -32,7 +32,7 @@ const HIGH_CONTRAST_THEME           = 'HighContrast';
 var ATIndicator = GObject.registerClass(
 class ATIndicator extends PanelMenu.Button {
     _init() {
-        super._init(0.0, _("Accessibility"));
+        super._init(0.5, _("Accessibility"));
 
         this._hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
         this._hbox.add_child(new St.Icon({ style_class: 'system-status-icon',
index cb9f331f388ff3bf7aff15cadf249f7f233ce992..ca7dca6e23745e5057d0da764f6405de1d153070 100644 (file)
@@ -34,7 +34,7 @@ const DWELL_CLICK_MODES = {
 var DwellClickIndicator = GObject.registerClass(
 class DwellClickIndicator extends PanelMenu.Button {
     _init() {
-        super._init(0.0, _("Dwell Click"));
+        super._init(0.5, _("Dwell Click"));
 
         this._hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
         this._icon = new St.Icon({ style_class: 'system-status-icon',
index df8e9c2f1b9c917ca2a328308e6b5bb71a42bd05..ff2456a601889cadc5bfdf2cf32c70e89626e414 100644 (file)
@@ -810,7 +810,7 @@ class InputSourceIndicatorContainer extends St.Widget {
 var InputSourceIndicator = GObject.registerClass(
 class InputSourceIndicator extends PanelMenu.Button {
     _init() {
-        super._init(0.0, _("Keyboard"));
+        super._init(0.5, _("Keyboard"));
 
         this.connect('destroy', this._onDestroy.bind(this));